@import url(./search.css);

.header {
    position: relative;
    width: 100%;
    height: 15vmin;
    background-color: #232323;
}

.header-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1130px;
    margin: 0 auto;
}

.header-content-normal {
    position: relative;
    width: 100%;
    height: 100%;
}

.header-content-back {
    --size: 13vmin;
    position: absolute;
    top: 50%;
    left: 0;
    width: var(--size);
    height: var(--size);
    transform: translateY(-50%);
}

.header-content-back::before {
    --borer-size: 3vmin;
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--borer-size);
    height: var(--borer-size);
    border-top: 1vmin solid #ffffff;
    border-left: 1vmin solid #ffffff;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.header-content-normal_title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5vmin;
    color: #ffffff;
    text-align: center;
    width: 73vmin;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-content-menu {
    --size: 13vmin;
    position: absolute;
    top: 50%;
    right: 0;
    width: var(--size);
    height: var(--size);
    transform: translateY(-50%);
    background: url(../imgs/menu.svg) no-repeat center center;
    background-size: 70%;
}

.nav {
    position: fixed;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: 50vmin;
    color: #ffffff;
    z-index: 2000;
    background-color: #ffffff;
    transform: translateX(-100%);
    transition: transform 300ms ease-in-out;
}

.nav.open {
    transform: translateX(0);
}

.nav-mask {
    content: '';
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .8);
    z-index: 1999;
}

.nav .nav-item {
    line-height: 12vmin;
    padding: 2vmin;
}

.nav .nav-item.active {
    background-color: #6dbdd6;
}

.nav .nav-item.active span {
    color: #ffffff;
}

.nav-item span {
    font-size: 4vmin;
    color: #1d1d1f;
}

@media screen and (min-width: 768px) {
    .header {
        height: 48px;
    }

    .header-content-normal {
        display: none;
    }

    .nav {
        position: relative;
        display: flex;
        flex-direction: row;
        width: 100%;
        height: 100%;
        padding: 0;
        transform: translate(0);
        background-color: #232323;
        transition: none;
    }
    
    .nav .nav-item {
        display: flex;
        align-items: center;
        padding: 0 10px;
    }

    .nav .nav-item:hover {
        background-color: #6dbdd6;
    }
    
    .nav .nav-item span {
        font-size: 13px;
        font-weight: bold;
        color: #ffffff;
    }

    .nav-mask {
        display: none;
    }
}